/**
 * ...
 * @author Thot
 */

window.onload = function()
{
	setTimeout( test, 1000 );
};

function test()
{
	document.getElementById("output").value = "process";
	
	var i = 1000;
	
	var mat1 = new Matrix4x4();
	var mat2 = new Matrix4x4();
	var time = new Date().getTime();
	
	while( --i > -1 )
	{
		mat1.clone()
			.multiply( mat2 )
			.to2D();
	}
	
	time = new Date().getTime() - time;
	document.getElementById("output").value = time+"ms";
}